﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace T_player
{
    static class main
    {
        [STAThread]
        static void Main(string[] args)
        {
            String[] playerArgs = Environment.GetCommandLineArgs();
            if ( playerArgs.Length != 1 && Path.GetExtension(playerArgs[1]) != "mp3") {
                PlayMedia.clickedFileName = playerArgs[1]; // stin 0 thesi einai to ektelesimo tou player
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Tplayer());
        }
    }
}